--- id: TASK-041 title: 'Swap Home/End and Ctrl+Up/Down: line edges vs document edges' status: "\U0001F3C1 Done" assignee: [] created_date: '2026-07-09 04:42' updated_date: '2026-07-09 05:13' labels: - bug dependencies: [] priority: medium ordinal: 40000 --- ## Description Cmd+Left/Right (arriving as Home/End) jumped to the top/bottom of the document, and Ctrl+Up/Down moved to line start/end — backwards from macOS convention. Home/End now move to line edges; Ctrl+Home/Ctrl+End (what Ghostty's cmd+up/cmd+down send: CSI 1;5H / CSI 1;5F) move to document edges, with Ctrl+Up/Ctrl+Down as aliases. Shift variants follow. Bubbletea's Key struct has no Cmd/Super modifier, so Cmd can only ever reach glint as a terminal-emitted escape sequence — README now documents the four sequences plus Ghostty/iTerm2/Terminal.app config. ## Acceptance Criteria - [ ] #1 Home/End move to line start (smart, toggling first non-blank / column 0) and line end - [ ] #2 Ctrl+Up/Ctrl+Down move to document start/end - [ ] #3 Shift+Home/Shift+End select within the line - [ ] #4 Ctrl+Shift+Up/Down select to the document edges - [ ] #5 Help text reflects the new mapping - [ ] #6 Ctrl+Home/Ctrl+End move to document start/end - [ ] #7 README documents the terminal config needed for Cmd+arrows